/*
 * Powered By [pkuWx]
 * Web Site: http://www.wuxi.ss.pku.edu.cn
 * Since 2015 - 2015
 */

package cn.edu.pku.wxlib.librarycard.dao;

import java.util.*;

import cn.edu.pku.wxlib.librarycard.model.*;
import cn.edu.pku.wxlib.librarycard.service.*;
import cn.edu.pku.wxlib.librarycard.vo.query.*;

import javacommon.base.*;
import javacommon.util.*;
import javacommon.page.Page;

/**
 * @version 1.0
 * @since 1.0
 */


import org.springframework.stereotype.Repository;


@Repository
public class LibrarycardDao extends BaseIbatis3Dao<Librarycard,LibrarycardQuery,java.lang.Integer>{
	
	@Override
	public String getIbatisMapperNamesapce() {
		return "Librarycard";
	}
	
	public void saveOrUpdate(Librarycard entity) {
		if(entity.getLibraryCardId() == null) 
			save(entity);
		else 
			update(entity);
	}
	
	public Page findPage(LibrarycardQuery query) {
		return pageQuery("Librarycard.findPage",query);
	}
	

}
